﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Guarouba.Pages
{
    public partial class Sair : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //Deletar o Cookie de Login (caso tenha)
            if (Request.Cookies["grba"] != null)
            {
                HttpCookie ck = new HttpCookie("grba");
                ck.Expires = DateTime.Now.AddDays(-1d);
                Response.Cookies.Add(ck);
            }

            //Redirecionar para Página de Login
            Response.Redirect("~/Pages/Default.aspx");
        }
    }
}